package lesson06.timer;

/**
 * 功能描述
 *
 * @author wileda
 * @date 2023/01/13  16:47
 */
public class Demo_Timer03 {
    public static void main(String[] args) throws InterruptedException {
        MyTimer myTimer = new MyTimer();
        myTimer.schedule(() -> {
            System.out.println("任务1");
        },0);
        myTimer.schedule(() -> {
            System.out.println("任务2");
        },0);
        myTimer.schedule(() -> {
            System.out.println("任务3");
        },0);
    }
}
